<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 1·页面输出年龄 1 - 100
        // for(let i = 1; i <= 100; i++){
        //     document.write(`我今年${i}岁<br>`)
        // }
        // 2·页面输出1-100的整数
        for(let i = 1; i <= 100; i++){
            if(i % 2 === 0){
            document.write(i + '<br>')
        } 
    }
    </script>
</body>
</html>